package com.hp.service;

import com.hp.entity.PolularScienceResources;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface PolularScienceResourcesService {
    public SubmitResultInfo saveresource(CommonsMultipartFile myfile, PolularScienceResources polularScienceResources, HttpServletRequest request) throws Exception;

    public DataGridResultInfo getAllAndIsN(int page, int rows, PolularScienceResources polularScienceResources)throws Exception;

    public PolularScienceResources findByid(int id)throws Exception;

    public SubmitResultInfo updateresource(CommonsMultipartFile myfile, PolularScienceResources polularScienceResources, HttpServletRequest request)throws Exception;

   // public PolularScienceResources getTypelink(String id)throws Exception;

    public SubmitResultInfo deleteIsNpsr(int id)throws Exception;

    public PolularScienceResources findByid(String id) throws Exception;

    public SubmitResultInfo adoptpsr(PolularScienceResources polularScienceResources) throws Exception;

    public PolularScienceResources xiugai(int id) throws Exception;
}
